package com._520it.crm.mapper;

import com._520it.crm.domain.UnderWriting;
import com._520it.crm.query.UnderWritingQueryObject;
import java.util.List;
import java.util.Map;

public interface UnderWritingMapper {

    int insert(UnderWriting record);

    UnderWriting selectByOrderBillId(Long id);

    List<UnderWriting> selectAll();

    int updateByPrimaryKey(UnderWriting record);

    int updateNotPassStatus(UnderWriting record);

    int updatePassStatus(UnderWriting underWriting);

    Long queryPageCount(UnderWritingQueryObject qo);

    List<Map> queryPageData(UnderWritingQueryObject qo);

    Long queryApprovedCount(UnderWritingQueryObject qo);

    List<Map> queryApprovedData(UnderWritingQueryObject qo);

    Map<String,String> querySuggestions(Long orderBillId);
}